package one.stand.feign;

import one.stand.fallback.WechatFallBack;
import one.stand.model.ResultModel;
import one.stand.request.CompanyAccountRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: QIK
 * @CreateDate: 2019/5/13 16:16
 */
@Component
@FeignClient(value = "wechat-service", fallback = WechatFallBack.class, decode404 = true)
public interface WechatFegin {
    @PostMapping("component/componentloginpage")
    ResultModel<String> componentloginpage(@RequestBody CompanyAccountRequest request);

    @PostMapping("component/componentCallBack")
    ResultModel componentCallBack(@RequestBody CompanyAccountRequest request);
    @PostMapping("component/getAuthorizerInfo")
    ResultModel getAuthorizerInfo(@RequestBody CompanyAccountRequest request);
}
